/**
 * 存数据
 * @param {*} name
 * @param {*} obj
 */
export const setItem = (name, obj) => {
  localStorage.setItem(name, JSON.stringify(obj));
};
/**
 * 取数据
 * @param {*} name
 */
export const getItem = name => {
  return JSON.parse(localStorage.getItem(name));
};
/**
 * 删除数据
 * @param {*} name
 */
export const removeItem = name => {
  localStorage.removeItem(name);
};
